package com.attendance.mapper;

import com.attendance.entity.Report;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ReportMapper extends BaseMapper<Report> {


    IPage<Report> selectPage(Page<Report> page);

    @Override
    int insert(Report entity);

    List<Report> selectAllByTeamId(Integer team_id);

    int deleteById(int id);

    int updateById(Report entity);

    Report selectById(Integer id);
}
